gdk: Fix gdk_surface_get_layout_monitor
authorMatthias Clasen <mclasen@redhat.com>
Mon, 3 Aug 2020 01:27:03 +0000 (21:27 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 3 Aug 2020 01:29:18 +0000 (21:29 -0400)
commit5a55f6ff7b981760272861b1d67b5a7dfb2bd7ad
tree95ad55edae8c4d033a8cd07102080fcbfcaf57a0
parent348a38a8769dacf88e4f69e07fbe37e4ddfd6732
gdk: Fix gdk_surface_get_layout_monitor

We are determining the monitor by maximizing the
intersection; that only works if our rectangle
is not empty.

Fixes: #3003
gdk/gdksurface.c